package com.pcs.model;


import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;

public class Contact extends Model<Contact>{
	
	public static final Contact contactDao = new Contact();
	
	public Page<Contact> paginate(int pageNumber, int pageSize) {
		return paginate(pageNumber, pageSize, "select *", "from contact where status = 'A' order by id asc");
	}
	
	public Page<Contact> _paginate(int pageNumber, int pageSize) {
		return paginate(pageNumber, pageSize, "select *", "from contact where status = 'I' order by id asc");
	}

}
